package com.itheima.edy.info.manager.controller;

import com.itheima.edy.info.manager.domain.Student;

import java.time.OffsetTime;
import java.util.Scanner;

public class StudentController extends BaseStudentController {
   private Scanner sc = new Scanner(System.in);
    @Override
    public Student inputStudentInfo(String id) {
        System.out.println("请输入学生姓名");
        String name = sc.next();
        System.out.println("请输入学生年龄");
        int age = sc.nextInt();
        System.out.println("请输入学生生日");
        String birthday = sc.next();

        //将学生信息封装为学生对象
        Student stu = new Student();
        stu.setId(id);
        stu.setName(name);
        stu.setAge(age);
        stu.setBirthday(birthday);
        return stu;
    }
}